package com.qf.mapper;

import com.qf.pojo.User;
import com.qf.vo.UserVo;

import java.util.List;

/**
 * @author zdl
 * @date 2025/2/10
 */
public interface UserMapper {
    User selectUserById(int id);
    List<User> selectUserAll();

    User loginByUsernameAndPassword(User user);

    int addUser(User user);

    int updateUser(User user);

    /**
     * 根据用户id  查询对应用户的订单
     * @param id
     * @return
     */
    UserVo selectUserWithOrderById(int id);
}
